package cn.edu.nju.askinginhand.bean;
// default package

import java.util.HashSet;
import java.util.Set;


/**
 * User entity. @author MyEclipse Persistence Tools
 */

public class User  implements java.io.Serializable {


    // Fields    

     private Integer id;
     private String password;
     private Integer type;
     private String username;
     private Set friendsesForUid = new HashSet(0);
     private Set audioAnswers = new HashSet(0);
     private Set pictureQueses = new HashSet(0);
     private Set friendsesForFid = new HashSet(0);
     private Set freshThingses = new HashSet(0);
     private Set messagesForToId = new HashSet(0);
     private Set pictureAnswers = new HashSet(0);
     private Set userinfos = new HashSet(0);
     private Set audioQueses = new HashSet(0);
     private Set messagesForFromId = new HashSet(0);


    // Constructors

    /** default constructor */
    public User() {
    }

	/** minimal constructor */
    public User(Integer type) {
        this.type = type;
    }
    
    /** full constructor */
    public User(String password, Integer type, String username, Set friendsesForUid, Set audioAnswers, Set pictureQueses, Set friendsesForFid, Set freshThingses, Set messagesForToId, Set pictureAnswers, Set userinfos, Set audioQueses, Set messagesForFromId) {
        this.password = password;
        this.type = type;
        this.username = username;
        this.friendsesForUid = friendsesForUid;
        this.audioAnswers = audioAnswers;
        this.pictureQueses = pictureQueses;
        this.friendsesForFid = friendsesForFid;
        this.freshThingses = freshThingses;
        this.messagesForToId = messagesForToId;
        this.pictureAnswers = pictureAnswers;
        this.userinfos = userinfos;
        this.audioQueses = audioQueses;
        this.messagesForFromId = messagesForFromId;
    }

   
    // Property accessors

    public Integer getId() {
        return this.id;
    }
    
    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return this.password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getType() {
        return this.type;
    }
    
    public void setType(Integer type) {
        this.type = type;
    }

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }

    public Set getFriendsesForUid() {
        return this.friendsesForUid;
    }
    
    public void setFriendsesForUid(Set friendsesForUid) {
        this.friendsesForUid = friendsesForUid;
    }

    public Set getAudioAnswers() {
        return this.audioAnswers;
    }
    
    public void setAudioAnswers(Set audioAnswers) {
        this.audioAnswers = audioAnswers;
    }

    public Set getPictureQueses() {
        return this.pictureQueses;
    }
    
    public void setPictureQueses(Set pictureQueses) {
        this.pictureQueses = pictureQueses;
    }

    public Set getFriendsesForFid() {
        return this.friendsesForFid;
    }
    
    public void setFriendsesForFid(Set friendsesForFid) {
        this.friendsesForFid = friendsesForFid;
    }

    public Set getFreshThingses() {
        return this.freshThingses;
    }
    
    public void setFreshThingses(Set freshThingses) {
        this.freshThingses = freshThingses;
    }

    public Set getMessagesForToId() {
        return this.messagesForToId;
    }
    
    public void setMessagesForToId(Set messagesForToId) {
        this.messagesForToId = messagesForToId;
    }

    public Set getPictureAnswers() {
        return this.pictureAnswers;
    }
    
    public void setPictureAnswers(Set pictureAnswers) {
        this.pictureAnswers = pictureAnswers;
    }

    public Set getUserinfos() {
        return this.userinfos;
    }
    
    public void setUserinfos(Set userinfos) {
        this.userinfos = userinfos;
    }

    public Set getAudioQueses() {
        return this.audioQueses;
    }
    
    public void setAudioQueses(Set audioQueses) {
        this.audioQueses = audioQueses;
    }

    public Set getMessagesForFromId() {
        return this.messagesForFromId;
    }
    
    public void setMessagesForFromId(Set messagesForFromId) {
        this.messagesForFromId = messagesForFromId;
    }
   








}